package org.ajax.entity;

import java.util.Date;

/**
 * @author CSY
 * @date 2024-11-20
 */
public class Good {
    /**
     * 商品编号
     */
    private String goodId;
    /**
     * 商品名称
     */
    private String goodName;
    /**
     * 商品价格
     */
    private double goodPrice;
    /**
     * 上货日期
     */
    private Date goodDate;
    /**
     * 是否下架
     */
    private int goodStatus;

    public String getGoodId() {
        return goodId;
    }

    public Good() {}

    public Good(String goodId, String goodName, double goodPrice, Date goodDate, int goodStatus) {
        this.goodId = goodId;
        this.goodName = goodName;
        this.goodPrice = goodPrice;
        this.goodDate = goodDate;
        this.goodStatus = goodStatus;
    }

    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public double getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(double goodPrice) {
        this.goodPrice = goodPrice;
    }

    public Date getGoodDate() {
        return goodDate;
    }

    public void setGoodDate(Date goodDate) {
        this.goodDate = goodDate;
    }

    public int getGoodStatus() {
        return goodStatus;
    }

    public void setGoodStatus(int goodStatus) {
        this.goodStatus = goodStatus;
    }

    @Override
    public String toString() {
        return "Good{" +
                "goodId='" + goodId + '\'' +
                ", goodName='" + goodName + '\'' +
                ", goodPrice=" + goodPrice +
                ", goodDate=" + goodDate +
                ", goodStatus=" + goodStatus +
                '}';
    }
}
